<?php defined('InShopNC') or exit('Access Invalid!');?>
<div class="newWelfare_box">
    <div class="newWelfare_cen">
        <!--活动区域（拼团、砍价等）-->
        <div class="activityBlock">
            <div class="list">
                <?php if(!empty($output['code_act_left']['code_info']['pic'])){?>
                <div class="activityImg">
                    <img src="<?php echo UPLOAD_SITE_URL.'/'.$output['code_act_left']['code_info']['pic'];?>" alt="">
                </div>
                <?php }?>
                <?php if(!empty($output['code_recommend_list']['code_info'][0])){?>
                <div class="right">
                    <div class="top" style="background: url(<?php echo SHOP_TEMPLATES_URL;?>/images/newimages/ui_img.png) no-repeat 100% 100%;">
                        <?php echo $output['code_recommend_list']['code_info'][0]['recommend']['name'];?>
                    </div>
                    <?php if(!empty($output['code_recommend_list']['code_info'][0]['goods_list'])){?>
                    <div class="cpList">
                        <!--列表-->
                        <ul>
                            <?php foreach($output['code_recommend_list']['code_info'][0]['goods_list'] as $v){?>
                            <li>
                                <div class="title">
                                    <?php echo $v['goods_name']; ?>
                                </div>
                                <div class="price">
                                    <span>￥</span><span><?php echo $v['goods_price']; ?></span>
                                </div>
                                <div class="imgBox">
                                    <img src="<?php echo cthumb($v['goods_pic']);?>" alt="<?php echo $v['goods_name']; ?>">
                                </div>
                                <div onclick='javascript:location.href="<?php echo urlShop('goods','index',array('goods_id'=> $v['goods_id'])); ?>";' class="btn">
                                    马上开团
                                </div>
                            </li>
                            <?php }?>
                        </ul>
                    </div>
                    <?php }?>
                </div>
                <?php }?>
            </div>
            <div class="list">
                <?php if(!empty($output['code_act_right']['code_info']['pic'])){?>
                <div class="activityImg">
                    <img src="<?php echo UPLOAD_SITE_URL.'/'.$output['code_act_right']['code_info']['pic'];?>" alt="">
                </div>
                <?php } ?>
                <?php if(!empty($output['code_recommend_list']['code_info'][1])){?>
                <div class="right">
                    <div class="top" style="background: url(<?php echo SHOP_TEMPLATES_URL;?>/images/newimages/ui_img4.png) no-repeat 100% 100%;">
                        <?php echo $output['code_recommend_list']['code_info'][1]['recommend']['name'];?>
                    </div>
                    <?php if(!empty($output['code_recommend_list']['code_info'][1]['goods_list'])){?>
                    <div class="cpList">
                        <!--列表-->
                        <ul>
                            <?php foreach($output['code_recommend_list']['code_info'][1]['goods_list'] as $v){?>
                            <li>
                                <div class="title">
                                    <?php echo $v['goods_name']; ?>
                                </div>
                                <div class="price2">
                                    <span>￥</span><span><?php echo $v['goods_price']; ?></span>
                                </div>
                                <div class="imgBox">
                                    <img src="<?php echo cthumb($v['goods_pic']);?>" alt="<?php echo $v['goods_name']; ?>">
                                </div>
                                <div onclick='javascript:location.href="<?php echo urlShop('goods','index',array('goods_id'=> $v['goods_id'])); ?>";' class="btn2">
                                马上砍价
                                </div>
                            </li>
                            <?php }?>
                        </ul>
                    </div>
                    <?php }?>
                </div>
                <?php }?>
            </div>
        </div>
    </div>
</div>
<div class="h"></div>